import axios from "axios";
const base = {
    baseUrl:'http://api.tianapi.com',
    ncow:'/txapi/ncov/index',
    juheapi:"/juheapi"
}
const QK ={
    //使用夸克api,获取省市情况
    cityCov:`https://covid.myquark.cn/quark/covid/data/province?
    __t=1667636872538&uc_param_str=
    dnfrpfbivessbtbmnilauputogpintnwmtsvcppcprsnnnchmicckpgi`
}
const QQ ={
    //使用QQ网页api,获取省市情况
    cityCov:`https://api.inews.qq.com/newsqa/v1/query/inner/publish/modules/list?modules=nowConfirmStatis,provinceCompare`
}
const city ={
    cityinfo:`/springTravel/citys?key=171e165a7d991c5f6ecd5194c54778ef`
}
const api ={
    getNcov(params){
        return axios.get(base.baseUrl + base.ncow,{
            params
        })
    },
}
const QQapi = {
    getCity(params){
        return axios.get(QQ.cityCov)
    }
}
const Cityapi = {
    getCity(){
        return axios.get(base.juheapi+city.cityinfo)
    }
}
const Api = {
    api,QQapi,Cityapi
}
export default Api;